<template>
  <el-container style="background-color: #fff; padding-top: 18px">
    <!--左侧菜单栏-->
    <el-aside width="260px"
    >
      <div
        style="
          background-color: #f2f2f2;
          height: 40px;
          line-height: 40px;
          text-align: left;
          padding-left: 20px;
          font-weight: bold;
          font-size: 15px;
        "
      >
        高风险部门/建筑TOP10
      </div>
      <el-menu
        index="/inspection/patrolPoints/all"
        mode="vertical"
        :router="true"
        default-active="/inspection/patrolPoints/all"
       
      >
        <el-submenu
          :router="true"
          mode="vertical"
          index="/inspection/patrolPoints/all"
          default-active="/inspection/patrolPoints/all"
          style="text-align: left"
        >
          <template slot="title">ABC综合体</template>
          <el-menu-item index="/inspection/patrolPoints/all">全部</el-menu-item>
          <el-menu-item index="/inspection/patrolPoints/integratedOffice"
            >综合办公楼</el-menu-item
          >
          <el-menu-item index="/inspection/patrolPoints/productionLine"
            >产线厂房</el-menu-item
          >
          <el-menu-item index="/inspection/patrolPoints/storage"
            >仓储楼</el-menu-item
          >
          <el-menu-item index="/inspection/patrolPoints/activityCenter"
            >活动中心</el-menu-item
          >
        </el-submenu>
      </el-menu>
    </el-aside>
    <router-view></router-view>
  </el-container>
</template>

<script>
export default {
  data: function () {
    return {};
  },
  components: {},
  mounted() {
    this.$router.replace("/inspection/patrolPoints/all");
  },
};
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}
i {
  color: #0a92fa;
  font-weight: bold;
}

.el-container {
  height: 100%;
  background: #fff;
  margin: 20px 0px 0px 10px;
  .el-header {
    height: 50px;
    .nav {
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      background-color: #3a4049;
      height: 50px;
      .nav-left {
        width: 370px;
        display: flex;
        justify-content: space-evenly;
      }
      .nav-right {
        width: 200px;
        display: flex;
        justify-content: space-evenly;
      }
    }
  }
  .el-aside {
    margin-bottom: 12px;
    background-color: #fff;
  }
}
</style>